package cn.findviewbydream.evil.app.service

import cn.findviewbydream.evil.main.entity.BaseSeatEntity
import cn.findviewbydream.evil.main.entity.OrderEntity
import cn.findviewbydream.evil.main.entity.OrderItemEntity
import java.util.*

/********************************************
 * 工程名：MealOrder
 * 包名：cn.findviewbydream.evil.app.service
 * 时间：16-12-28
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：
 ********************************************/
interface OrderService
{
    fun getSeatList(): List<BaseSeatEntity>?

    fun getUnFinishOrderList(): List<OrderEntity>?

    fun getFinishOrderList(start: Date, end: Date?): List<OrderEntity>?

    fun getOrderItemListByOrderId(orderId: Int): List<OrderItemEntity>?

    fun setOrderItemListNum(orderId: Int, json: String): Boolean?

    fun setOrderTotalUpdate(orderId: Int): Boolean?

    fun setOrderItemDelete(orderId: Int): Boolean?

    fun setFinishOrder(json: String): Boolean?
}